﻿<ctl:XapExplorerApplicationBase
  xmlns:ctl ="clr-namespace:SilverlightApplication1"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
	mc:Ignorable="d"
	x:Class="SilverlightApplication1.Control2"
	d:DesignWidth="640" d:DesignHeight="480"
  GotFocus="control2_GotFocus"
  SizeChanged="control2_sizeChanged"
  
>
  <ctl:XapExplorerApplicationBase.Resources>
		<Storyboard x:Name="Storyboard1" RepeatBehavior="Forever" AutoReverse="True">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="rectangle">
				<EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="-119"/>
				<EasingDoubleKeyFrame KeyTime="0:0:2" Value="-386"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="rectangle">
				<EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="267"/>
				<EasingDoubleKeyFrame KeyTime="0:0:2" Value="-48"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
  </ctl:XapExplorerApplicationBase.Resources>

	<Grid x:Name="LayoutRoot">
		<Rectangle x:Name="rectangle" Fill="#FFBDE516" HorizontalAlignment="Right" Height="107" Margin="0,82,67,0" Stroke="Black" VerticalAlignment="Top" Width="159" RenderTransformOrigin="0.5,0.5">
			<Rectangle.RenderTransform>
				<CompositeTransform/>
			</Rectangle.RenderTransform>
		</Rectangle>
    <TextBlock  x:Name="tblk"  Height="23" HorizontalAlignment="Left" Margin="240,251,0,0" Text="TextBlock" VerticalAlignment="Top" Width="166" TextAlignment="Center" FontWeight="Bold" />
  </Grid>
</ctl:XapExplorerApplicationBase>